package com.cskaoyan.service;

import com.cskaoyan.bean.Comment;
import com.cskaoyan.bean.Goods;
import com.cskaoyan.bo.CommentBO;
import com.cskaoyan.bo.CreateGoodsBO;
import com.cskaoyan.bo.SearchGoodsBO;
import com.cskaoyan.vo.*;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author LiaoLong
 * @date 2021-05-09 14:48
 */
public interface GoodsManagementService {
    GoodsVO getGoods(SearchGoodsBO searchGoodsBO);

    CatAndBrandVO catAndBrand();

    StorageVO fileupload(MultipartFile file, String fileSavePath);

    void createGoods(CreateGoodsBO createGoodsBO);

    void deleteGoods(Goods goods);

    GoodsDetailVO getGoodsDetail(Integer id);

    void updateGoods(GoodsDetailVO goodsDetailVO);

    CommentVO getComments(CommentBO commentBO);

    void deleteComment(Comment comment);
}
